package com.lunchEveryDay.service;

import com.lunchEveryDay.dao.BaseDao;
import com.lunchEveryDay.dao.UserDao;
import com.lunchEveryDay.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Admin on 2015/7/21.
 */
@Service
public class UserService extends BaseService<User,String> {
	@Resource
	private UserDao userDao;
	@Override
	BaseDao<User, String> getDao() {
		return userDao;
	}
	public User getUserByUsername(String ussername)
	{
		return userDao.getUser(ussername);
	}


}
